/* GSInOrOutStorageBean.java
 *
 * Project/Product: GWBS2009
 *
 * Modify Information:
 * =============================================================================
 *   Author	Date       Description
 *   ----------	---------- ---------------------------------------------------
 *   np	2009-4-9	First release
 *
 * Licensed Materials - Property of APEP
 * =============================================================================
 *    (C) COPYRIGHT Shanghai Auto Mart E-Procurement Co., Ltd. 2007 - 2009
 *    All Rights Reserved.
 *
 *    This software is the confidential and proprietary information of
 *    Shanghai Auto Mart E-Procurement Co., Ltd. ("Confidential Information").
 *    You shall not disclose such Confidential Information and shall use it only
 *    in accordance with the terms of the license agreement you entered into 
 *    with Shanghai Auto Mart E-Procurement Co., Ltd.
 *
 * Noties:
 * =============================================================================
 * 
 */

package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSInOrOutStorageBean implements GSBaseBean {

    private String providerCode;
    private String productIds;
    private String beginDate;
    private String endDate;
    private String type;
    private String balanceMode;
    private String productId;
    private String productName;
    private String concentricityCode;
    private String warehouseNo;
    private String warehouseName;
    private String productModel;
    private String productSpec;
    private String productTitle;
    private String manufaturer;
    private String inoutdate;
    private double qty;
    private String unit;
    
    
    /**
     * @return the providerCode
     */
    public String getProviderCode() {
        return this.providerCode;
    }


    /**
     * @param aProviderCode the providerCode to set
     */
    public void setProviderCode(String aProviderCode) {
        this.providerCode = aProviderCode;
    }


    /**
     * @return the productIds
     */
    public String getProductIds() {
        return this.productIds;
    }


    /**
     * @param aProductIds the productIds to set
     */
    public void setProductIds(String aProductIds) {
        this.productIds = aProductIds;
    }


    /**
     * @return the beginDate
     */
    public String getBeginDate() {
        return this.beginDate;
    }


    /**
     * @param aBeginDate the beginDate to set
     */
    public void setBeginDate(String aBeginDate) {
        this.beginDate = aBeginDate;
    }


    /**
     * @return the endDate
     */
    public String getEndDate() {
        return this.endDate;
    }


    /**
     * @param aEndDate the endDate to set
     */
    public void setEndDate(String aEndDate) {
        this.endDate = aEndDate;
    }


    /**
     * @return the type
     */
    public String getType() {
        return this.type;
    }


    /**
     * @param aType the type to set
     */
    public void setType(String aType) {
        this.type = aType;
    }


    /**
     * @return the balanceMode
     */
    public String getBalanceMode() {
        return this.balanceMode;
    }


    /**
     * @param aBalanceMode the balanceMode to set
     */
    public void setBalanceMode(String aBalanceMode) {
        this.balanceMode = aBalanceMode;
    }


    /**
     * @return the productId
     */
    public String getProductId() {
        return this.productId;
    }


    /**
     * @param aProductId the productId to set
     */
    public void setProductId(String aProductId) {
        this.productId = aProductId;
    }


    /**
     * @return the productName
     */
    public String getProductName() {
        return this.productName;
    }


    /**
     * @param aProductName the productName to set
     */
    public void setProductName(String aProductName) {
        this.productName = aProductName;
    }


    /**
     * @return the concentricityCode
     */
    public String getConcentricityCode() {
        return this.concentricityCode;
    }


    /**
     * @param aConcentricityCode the concentricityCode to set
     */
    public void setConcentricityCode(String aConcentricityCode) {
        this.concentricityCode = aConcentricityCode;
    }


    /**
     * @return the warehouseNo
     */
    public String getWarehouseNo() {
        return this.warehouseNo;
    }


    /**
     * @param aWarehouseNo the warehouseNo to set
     */
    public void setWarehouseNo(String aWarehouseNo) {
        this.warehouseNo = aWarehouseNo;
    }


    /**
     * @return the warehouseName
     */
    public String getWarehouseName() {
        return this.warehouseName;
    }


    /**
     * @param aWarehouseName the warehouseName to set
     */
    public void setWarehouseName(String aWarehouseName) {
        this.warehouseName = aWarehouseName;
    }


    /**
     * @return the productModel
     */
    public String getProductModel() {
        return this.productModel;
    }


    /**
     * @param aProductModel the productModel to set
     */
    public void setProductModel(String aProductModel) {
        this.productModel = aProductModel;
    }


    /**
     * @return the productSpec
     */
    public String getProductSpec() {
        return this.productSpec;
    }


    /**
     * @param aProductSpec the productSpec to set
     */
    public void setProductSpec(String aProductSpec) {
        this.productSpec = aProductSpec;
    }


    /**
     * @return the productTitle
     */
    public String getProductTitle() {
        return this.productTitle;
    }


    /**
     * @param aProductTitle the productTitle to set
     */
    public void setProductTitle(String aProductTitle) {
        this.productTitle = aProductTitle;
    }


    /**
     * @return the manufaturer
     */
    public String getManufaturer() {
        return this.manufaturer;
    }


    /**
     * @param aManufaturer the manufaturer to set
     */
    public void setManufaturer(String aManufaturer) {
        this.manufaturer = aManufaturer;
    }


    /**
     * @return the inoutdate
     */
    public String getInoutdate() {
        return this.inoutdate;
    }


    /**
     * @param aInoutdate the inoutdate to set
     */
    public void setInoutdate(String aInoutdate) {
        this.inoutdate = aInoutdate;
    }


    /**
     * @return the qty
     */
    public double getQty() {
        return this.qty;
    }


    /**
     * @param aQty the qty to set
     */
    public void setQty(double aQty) {
        this.qty = aQty;
    }


    /**
     * @return the unit
     */
    public String getUnit() {
        return this.unit;
    }


    /**
     * @param aUnit the unit to set
     */
    public void setUnit(String aUnit) {
        this.unit = aUnit;
    }


    /* (non-Javadoc)
     * @see com.hitrust.gs.service.GSBaseBean#process(java.sql.ResultSet)
     */
    public Object process(ResultSet aResultSet) throws SQLException {
        GSInOrOutStorageBean bean=new GSInOrOutStorageBean();
        bean.productId=aResultSet.getString("p1")==null?"":aResultSet.getString("p1");
        bean.productName=aResultSet.getString("p2")==null?"":aResultSet.getString("p2");
        bean.concentricityCode=aResultSet.getString("p3")==null?"":aResultSet.getString("p3");
        bean.warehouseNo=aResultSet.getString("p4")==null?"":aResultSet.getString("p4");
        bean.warehouseName=aResultSet.getString("p5")==null?"":aResultSet.getString("p5");
        bean.productModel=aResultSet.getString("p6")==null?"":aResultSet.getString("p6");
        bean.productSpec=aResultSet.getString("p7")==null?"":aResultSet.getString("p7");
        bean.productTitle=aResultSet.getString("p8")==null?"":aResultSet.getString("p8");
        bean.manufaturer=aResultSet.getString("p9")==null?"":aResultSet.getString("p9");
        bean.balanceMode=aResultSet.getString("p10")==null?"":aResultSet.getString("p10");
        bean.inoutdate=aResultSet.getString("p11")==null?"":aResultSet.getString("p11");
        bean.qty=aResultSet.getDouble("p12");
        bean.unit=aResultSet.getString("p13")==null?"":aResultSet.getString("p13");
        return bean;
    }

}
